package com.iuie.ns.devtools.element;

import com.iuie.ns.devtools.to.ResultMapDevHeaderTO;

public abstract class ResultMapRMapElement extends DevElement {
	
	private ResultMapDevHeaderTO header;
	
	public ResultMapRMapElement(ResultMapDevHeaderTO header) {
		this.header = header;
	}

	@Override
	protected String getPrefix() {
		StringBuilder sb = new StringBuilder(12);
		sb.append("\t<resultMap ")
			.append("type=\"")
			.append(header.getFullPath("vo"))
			.append("\" id=\"")
			.append(header.getVariableSimpleClassName())
			.append("Map\">\n");
		return sb.toString();
	}

	@Override
	protected String getSuffix() {
		return "\t</resultMap>\n";
	}

}
